package com.example.riskmanage.dao;


import com.example.riskmanage.bean.Riskgaitu;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface RiskgaituDao extends JpaRepository<Riskgaitu,Integer> {

    /**
     * 通过uid查找所有Riskgaitu集合
     * @param uid
     * @return
     */
    List<Riskgaitu> findAllByUid(Integer uid);

    void deleteById(Integer id);

    Riskgaitu findRiskgaituById(Integer id);
}
